T
Type of the object that will be cloned
IdeaBlade DevForce 2010 Help Reference
DeepClone<T>(T) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > ReflectionCloner Class > DeepClone Method : DeepClone<T>(T) Method



objectGraph
Object that will be cloned
Creates a deep clone of the specified object, also creating clones of all referenced child and nested objects.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function DeepClone(Of T)( _
   ByVal objectGraph As T _
) As T
Visual Basic (Usage)Copy Code
Dim objectGraph As T
Dim value As T
 
value = ReflectionCloner.DeepClone(Of T)(objectGraph)
C# 
public static T DeepClone<T>( 
   T objectGraph
)
C++/CLI 
public:
static T^ DeepClonegeneric<typename T>
( 
   T^ objectGraph
) 

Parameters

objectGraph
Object that will be cloned

Type Parameters

T
Type of the object that will be cloned

Return Value

A deep clone of the provided object

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.